import mathmetic

def commandui():
    print('Welcome to use!')
    print('Enter Data Set(one by one, using a enter to break num, type a \'ok\' to stop): ')
    dataSet = []
    while True:
        choice = input('Num: ')
        if choice == 'ok':
            break
        else:
            dataSet.append(float(choice))
        print(choice)
    inst = mathmetic.DataAnalysiser()
    average = inst.Average(dataSet)
    variance = inst.ArithmeticVariance(dataSet)
    standardDeviation = inst.StandardDeviation(dataSet)
    arange = inst.ArithmeticRange(dataSet)
    median = inst.Median()

if __name__ == "__main__":
    commandui()